using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Controls;

namespace Ricciolo.PaperBoy.UI
{
    [Serializable()]
    public class FeedSetting : NotifyObject
    {
        private FlowDocumentReaderViewingMode _viewingMode = FlowDocumentReaderViewingMode.Scroll;
        private double _zoom = 100;
        private bool _isExpanded;

        public FlowDocumentReaderViewingMode ViewingMode
        {
            get { return _viewingMode; }
            set
            {
                _viewingMode = value;
                OnPropertyChanged("ViewingMode");
            }
        }

        public double Zoom
        {
            get
            {
                if (_zoom == 0)
                    _zoom = 100;
                return _zoom;
            }
            set
            {
                _zoom = value;
                OnPropertyChanged("Zoom");
            }
        }


        public bool IsExpanded
        {
            get { return _isExpanded; }
            set
            {
                _isExpanded = value;
                OnPropertyChanged("IsExpanded");
            }
        }
    }
}
